fixes user reference in key retrieval