fix precision problem and reduce radius margin