Fix foreign key deletion issue

Don't