Merge "Error when taking the modulo of the length of an array"