Fixed bug introduced in 0745cb3cdd in events.py

Hello Severin ;-)