The iron in the ship caused a deviation of the magnetic need