save
fix thread restore