Fixed using union instead of intersection