1.3.4 Fixing logic in padding