Fix for empty array.