fixing led state init