fix removeRP bug, works on subsequent demos