Fixed foreign keys
fixing