fix for NullReferenceException in attachProvinceUser