Fix wrong number of argument error by passing the view_context.