A coding error in the system that calculates ballot needs left some Chicago precincts short of certain ballot types during Tuesday's midterm elections, causing delays and long lines. The election board has found the cause but is still determining how many polling places were affected.