fixed a bug in the led control example