small issue in check_int() func