fixed missing event in code