Did you label the blue bus (just outside the chip) with d[0..9], and label all the individual lines from the dip switch that go to the blue bus ( d0, d1 ...)