Fix Forge flags being added when not necessary.