fix mongoose events schema