fixed same bug in selectInCurrentDiagram