fixing RestConfig