Fix bug with missing default for undefined opts