I had this problem. Make sure that the buttons are in order of their numbers, i.e. 1 is first, 2 is second, etc. Starcraft displays them in the order they're entered in, regardless of their number. So if your buttons are in slots 1,2, and 3 but the 3 is first, the others will end up in 4 and 5. It can be a mess.