Fixed an error with padding

Extraction should now work correctly.