fixed betvalue checking