Fixed some more nullpointerexceptions related to colormode.