Fixed duplicate option bug