fix timeout script