fixed retention of metadata in rescaler