fixed behaviour when time is out check the input