Fix BG loading bug