Fix ValueError: too many values to unpack.