Fix change circle radius on small circles

Fix #787 
Math.maxn() ? Do you mean Math.max() ?