fixed minor events schema bugs