fix color parsing