fix reset context database after hasview in DefaultMenuAccessProvider