Fixed: Small errors in finding next anchor point.