timeout end fix