fix background switch