rest: fix refactoring fuck up