Fixed typos on creating custom events