fix timeout crash