fix save problem