Adjust array size before sending it into mode.