corrected negative bet input bug