Fixed the bad padding method.