DOCS-1662: fixing problem in function