fixed the bug in the _event partial