fixes for LEDs to work