fix bug and add new paramaters in options.
fix bug