fixed rewriter when serviceProxy/target is missing