fix pool index