Could it be the second argument?  I'd expect the order to be (newVal, prevVal, config)