Fixed event submission in Chrome and Firefox