Bug fix :
- foreign key refs are now correctly filled.