fix buildEvent