oops, fix event error for firefox