fix object var in events