Solved bug when pool is of size 1