fixing bug with parameter.insert()