fixed the null values from fields during socket reading