Fix component on and off