fixed wrong event type (closes #2)