fix bug I introduced in qrem