Fixed some bugs in the handling of background colors
0.5.1