Make event name lowercased to comply upcomung extensions policy.
Fix some minor flaws reported by EPV.