Fix error from pull request #1426 by @MIbragimov