Fix lpadding issue with final code