Fixed glitches in cmd_buy and in random item generation