detect circles fix