Fix cursor usage in getListMembers