fix server side events