Fixes for event target for Firefox