Fixed a bug in the location description function