Fixed bug by adding event to parameter list