fix memor proplem when call service