Fixes bug where background/foreground incorrect. Swapped background with foreground so it has the correct order