Fixed bugs with the update parameters.