fixed color parsing bug