Try setting canceled before other events