Fix code toggle switch