fixed a bug with saving data