Correction of the compass in iron ships