fix work with view and config