save and read file bug fixed