fixed bug getOptions