ensure that the keys are not of different types
indent fix in mapping code