fix foreign key constraint rollback