fixed callback for timeout