Fix references to app.opts