Fix background being in foreground