fix check_buy