fix bigint issues with RGB