Fixed bug with not saving new data