multiplexing voltage display

Maybe the display is common anode/cathode instead of common cathode/anode (delete as applicable), really need a schematic and part numbers to be sure. As it lights the segments correctly (though inverted) I would think it's wired okay. Simple fix would be to invert the segment definitions from 3,159,37,13,153,73,65,27,1,9 to 252,96,218,242,102,182,190,228,254,246