fixed max time issue