fix issue where empty location throws an error