Fix palette rendering