fix timeout initialization