fixed template to work with breaking fireEvent changes