Fixed bug where deprecated parameter is removed from unpickling code