TRQ-899: fix code on problem found by QA.