fixed bug on the pwm filepath