scan should stop at keyspace boundary