fixes bug in deprecate saving