Fix foreign foreign keys