corrected bug in padTo
Merge pull request #37 from gwenzek/patch-1

corrected bug in padTo