fixed gloabl option error