fix small bug when trying to resave variables