fix pool usage bug