Fix palette rendering at the bottom