fix max time limit