Fix depth retrieval.