Remove unused $event var, and fix typos