fix some bugs with options addition