fixed bug in Events object