Fixed issue in Controller\Rest

Hot fix