Fix joining in Not Exists and Aggregate nodes