Fix crash last ',' in array