fixed problem with timeout