Fixed the LED flashing code