fixed led handling (blinking fix)