resize fix and save fix