fixing FKs