fix reseting of timeout bug