fixed bug in parameter passing of options