Fixed retrieval of elements