Fix the always turn off state in index