fix emitEvent param (should be an array)