WSOTWO-138: Fixed problem with selecting root element