Fix keyspaces method