Fix bug end of time trial mode