fixes a type