fix a bug not save