events: fix setting the default values