Fixes for socket IO errors