Fix for padding not being calculated.