Fix Bug in Removing Parameters from the Bag