un-break background loading because of a misplaced else if