Fix returning mixed nodes