fixed eventType bug