Revert "fix bug with selected element"

This reverts commit 6287f257a309e2a20ca319595f175dccdb513502.
So long code

delete this commit