Fixing apothem finding