some fixes related with socketio xhr polling not working