Fix bug: pass event valiable when rendering event partial