fix timeout conversion