fixed payout bug and error messages