Fixed issue in Controller\Rest