fix event repeated multiple times