fixed undefined index notice for unset values in the saved array