fix color preferences bug

colors set to invalid in cache after using / cancelling preferences dialog