Fixed bug where bg would diappear sometimes