Move radius check.
Fix compile error.