fixed client_events.js errors