Fix pool detection
Merge pull request #1 from monester/fix_pool

Fix pool detection