remove "event is undefined" error