bugfix with multiple events