fix palette loading code for remaps and add red remap