fix small logic error that caused big bug in dal (listfields and dictfields)
fix typo in shell when storing key association