fix the padding problem