fix selected element after added