Fixed timeMin and timeMax bug