fixing yet another bug - Array index out of bounds if content items are broke