bug fix for elevation retrieval