Added error for events