fixed timout bug