Fix bug where result was changing (Cant access 3 in a 3x5 array)