In case of oscillation in the dc-link in two-level inverters, the ac voltage produced will be extremely unbalanced. Since in most of cases it is almost impossible to eliminate or even reduce the oscillation produced in the dc-link, an attempt must be made to minimize the effects of dc-link voltage oscillation on the ac side. In this paper, a new PWM-based control method is proposed to deal with the problem. Changing the reference values, the proposed method helps to balance the generated voltage and the current. To prove the accuracy of the proposed control method simulation results using PSCAD/EMTDC are presented. For the sake of validity, both static and dynamic loads were applied in the simulation process.