Fixed foreign key reference