fixing rgb color generator