fix mock -r