Save Function Fixed

Fixed previous errors that prevented saving new items.