Corrected bug in exporting pwm signal