fix checkCircle condition