Fix a incorrect comparison that was causing Cues not to be written.