fix multiple event issue