Fixed a bug on options initialization.