Fix: critical bug in RESTController.