Mitigating the effect of voltage sags on VSDs