fixing bug with data saving