Fixed a bug with duplicated option