fixed a bug in wms layer coloring