fix rest service for CMS