Fix resizing of pre code due to unneccesary padding