event canceling tested and bug fixed