Fixed bug in getObjects that resulted in zero size lists