fixing check_box bug