fixed another option modifying bug and added a test