Fix error with retrieval