Fixed magnet casing heights calculation.