changed checking a input number can be set or not
fixed: wrong behavior after reseting the table
increased version