Update #12 - Fix typo in padding logic