hack for not loosing caret in case of concurrent editing of the same expression