TQA-1254: fix assertion bug