Cancel event and fix error messages