colormapper: fix some nasty bugs