Changing to fix socket io problem