Fixed a bug in handling seq events.