minor bug fixed, ready for UT

- a fixed initial value of options
- added 'global' keyword