Fix crash in sequence dialog