Fixed pwm param file write