Married names not being added due to incorrect filtering