Corrent selection of diagram elements on creation. fixed #1212