Fixes bug where #ancestors did not return immediate parent.