fixed color assign, wrong  cx and cy