fixed unsync of button and light state