Fixed get_plan_locations for new ManyToMany