Fix issue with miscalculated CLUT section after ppm replace