Fixed small bug with timeout.