Fix LED flickering from user input