fixed background bugs