Fix bgcolor attribute handling