Fixes background bugs