Fix for ignored versions that causes a FK error on delete