fixed null pointer issue when reading church name