Fix opts dependencies in run method.