Fix bug with invalid ESC time