Index -12 out of bounds for length 13