bind model instance context to derive functions

the context is bound to the model instance everywhere else but here, so I fixed it for consistency's sake.