Unable to get colorindex of shape