fixed multiple event binding bug