Fix input disable bug