Fix event project.define circular call