Fix a bug that made it impossible to look up entries