Mag declination hotfix

Need to test carefully before merging and notify users on mainling list.