fixed foreign key null value