Fix keySetView issue on non java8 servers.