fixed loading of collection elements and ensuring indexes