bug with timeout