fix foreign key dismatch bug
fix foreign key dismatch bug