bugfix, event variable missuse

sorry bout this :)