fix restful resource