Bugfix for triggering an 'all' event twice