Fixes the background apearing at startup, and at reloading of the autostart script