fix some options bug