Fix loading BG from cache