Fix the case sensitivity on type.