fixed bugs in key column and color column