Fix event restricted element error messages