Fix #2006: stretch is invalid, introduced in cc61700
Merge pull request #2006 from mdboom/fix-stretch-invalid

ValueError: stretch is invalid