fixed a few tiny bugs (such as not using radius)