fixed the color generation that wasnt working on 64 bit machines (i think)