fixed a glitch with unit buying