Update getMembers function to work correctly with multi-site install