fixed setting ev.target, caused firefox to fail