fixed bug is wrong saving