Added missing code to make radius search for gates work with radius larger than zero. Fixes #34