$timeout tmp fix