Fixed a bug with saved data