add index to solve ValueError: zero length field name in format