Fix for namespacing bug, it was add foreign key