Call ensureCapacity prior to get to prevent an out of bounds exception