Resolve deprecation warning introduced by new event system

Get rid of stack trace in console because of new event system.