fixed some colorspace functions