Fix rest config