Fixed a bunch of small bugs with parameter changes