Fixed issue where friendship query size was not being dynamically calculated.