Fixing null trail in cancelEvent