Fix bug when using options.