Debug for time out of range error