Fixed bug in function all_except_option.