Patches for fix SEGV of check_radius [sf#1642658] [#742]