Fix bug where default_options where unexpectedly modified