Fix important bug for bgcolor compatible