Fixed foreign key type reference