fix infer