bugfix with non-objectID keys