Applying https://github.com/agerasimov/TextAtAnyCost/commit/e71381aaf1fe70589f5c1d5ebf1512e083ca341d