fixed bug in event api not displaying right