Bug #2548: Set correct flag for pool retrieval

(cherry picked from commit f213728b21226080d784259e74147379fa11d026)