fixed client memomry issue