Bug while assigning event on legacy browser fixed