Program editor bugfix