Fix a bug with the parent selector