Fix inconsistent FK issues.