Fixed background loading bug