fix opts issue