Fixed bug with record number cadence conversion and bug with magnetic coordinate generation error handling