minor bug fix in restful services