[fix] Fix creation of an event