Fix empty arrays.