Fixed nullpointerexception due to colormode.
Fixed crashbug due to sorting of unnamed lights right after bridge reset.