Fixing parameters update bugs.