Added error check when foreground/background color are the same