Fixed zero padding error for #298