Fixed bug with rectangle color