Fix incorrect variable usage

fixing incorrect variable use in keyNameToFieldName
Merge pull request #3 from strider-/patch-1

Fix incorrect variable usage