fixed not saving to file