Fix max sim time check