fixed broken function where dict expected all lowercase key