Fixed error with strings as keys.