fixes problem with empty prefix in the prefixes map