Fix DMS to DD conversion