Fix crash caused by ApplicationPool garbage collector

The code still assumed that it's a list instead of a vector.