fix for pool id (#1402)
fixes #1527