fixed circle pack infinite loop