bug fix for pool