fixed event builder bug