fixed a bug about using IWL but providing RWL