tree_id expires after flushing fixes #33