Fixed undefined opts.