Bugfix edit plan return