Fixed index out of bounds exceptions