fixed strange bug with last led and pwm needs one more int