fixed a couple of RD bugs