Fix regression caused by the previous commit

Authored by skalinichev.