fix single length arrays