Fix a bug that keys are not correctly normalized.