fixed a problem where the padding was being concatenated as a string