small bugfix in eventlistener