fixed document coloring