scheduler fix: for maxtime in combination with sun*