Fixes bug where foreground and background colors are swapped