fix closest angle fn
Merge commit '228b2ad' into production