correction min/maxTime