Fix bug in LED example