Fixing deepcopy issues with default paramaters.