fix modifying the given options objects