Yandex: fix errors in commits 3c33ba88078af and e176c798821fa7.

I hope this is a correct fix.