fixed rm flag