fix autorelease pool issue