minor correction logic: error emit by socket io server