fixed bug in rgb color parsing