Fixing setting of isOn