fix opts reference without self