fix code for collection.load