Fix palette layout for even number of entries.