fix wrong definition of model_of/value_of on buffer