Fixed the REST interface