fix rectangle color parsing