fixed a bug with event_type and capitalization