Remove wrong types.