Fix Gate error.