Fix the generation of foreign keys' names