Fixed foreign key relation