bug fix keyspace truncate