Fix null and blank attributes of models