correct the type.