I am trying to simulate FOC of Induction motor with SVPWM using MATLAB Simulink. In the motoring mode, the current is pure sine wave with desired frequency but in generating mode, the harmonic content is very high. What are the possible reasons and correcting action to rectify this problem?