fix plancourses bug where plancourses overridden with ids