Fix pool detection

Fix of pool detection