fix $timeout