fixed panic when decoding slice with empty values