Fixing logic inversion in padding. Closes #13.

As agreed in the erratum.