Fixed wrong parameters for the update_value function

Signed-off-by: Elliot Condon <e@elliotcondon.com>