Fixed bug with padding.