bug fix for fetching spouse information