Correct foriegn keys