Ensure that opts is properly set. Consistently handle the opts.controls / controls variable reference.