xrc: fix background/foreground position