Fix a bug about options depend order.