Arrays were being reduced to zero when 0 or 1