Fix bug where default_options are unexpectedly modified