Fix bug: keyspace error