fix eventType query issue