fix bug with enumerate unpacking too many values