Fix input text type being removed