Fixing remove flags.