fix where multiple event functions commit to making branch, first event function takes precedent