Fix chained element retrieval