fix warning in getKeysInCurrentBase
closes #865