Merge "fix crash with cues at the beginning of the file"