Fixed error in xs array being re-allocated