Bug fix DMS function

Fix a bug in the function that convert decimal degrees to DMS