Fixes for multiple pools in js