Fixed targeting bug in fireEvent()