Fix log retrieval