Deviation in a compass is caused by which of...