Fixed pause event after run/top or edit preferences