fixed bug with options