fix bufpool's bug