Fixed typo in paramChanged check.
Checked all onUpdateParameters to apply paramChanged function where needed.